home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / graphics / gif2rpc / source / h / map8bpp < prev    next >
Encoding:
Text File  |  1995-10-07  |  1.2 KB  |  44 lines

  1. /* map8bpp.h
  2.  * AUTHOR:      Cy Booker, cy@cheepnis.demon.co.uk
  3.  * LICENSE:     FreeWare, Copyright (c) 1995 Cy Booker
  4.  * PURPOSE:     low level 8 bit colour routines
  5.  */
  6.  
  7. #ifndef map8bpp_h
  8. #define map8bpp_h
  9.  
  10.  
  11. #include "OS:os.h"
  12.  
  13. #include "gif2rpc:process_gif.h"
  14.  
  15.  
  16.  
  17. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  18.  * this routine only requires an input of rgb16scaled, but make same as other, so can
  19.  * pass a function pointer into processing routines
  20.  * returns colour number given red, grn, blu
  21.  */
  22.  
  23. extern bits map_scaled_rgb_to_8bpp_colour_number_quick(
  24.                 rgbtupleout             *out,
  25.                 int                     red,
  26.                 int                     grn,
  27.                 int                     blu);
  28.  
  29.  
  30.  
  31. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  32.  * returns palette index given red, grn, blu, and io->palette
  33.  */
  34.  
  35. extern bits map_scaled_rgb_to_palette_index(
  36.                 rgbtupleout             *io,
  37.                 int                     red,
  38.                 int                     grn,
  39.                 int                     blu);
  40.  
  41.  
  42.  
  43. #endif /* map8bpp_h */
  44.